We can calculate the mean seat number on flights changing by the year and visualize them on a plot. We filter out older than 1985 to get more stable results.
In the early 2000s, mean seat numbers decreased significantly. Note that y-axis does not start from zero
2.1.2 Part 2
2.1.2.1 Calculation
We can
man = df %>%count(manufacturer, year, sort =TRUE) %>%filter(n >10)man
# A tibble: 79 × 3
manufacturer year n
<chr> <int> <int>
1 BOEING 2001 142
2 BOEING 2000 134
3 BOEING 1999 124
4 BOEING 1998 103
5 AIRBUS INDUSTRIE 2001 82
6 AIRBUS INDUSTRIE 2000 80
7 BOEING 2004 77
8 BOMBARDIER INC 2004 72
9 BOEING 2008 68
10 BOEING 2006 66
# … with 69 more rows